<!DOCTYPE html>
<html lang="en">
<head>
    <!-- META SECTION -->
    <title>基本信息--互联网金融司法诉讼平台</title>
    <link rel="shortcut icon" href="../assets/images/gt_header.png">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <!-- END META SECTION -->

    <!-- CSS INCLUDE -->
    <link rel="stylesheet" type="text/css" id="theme" href="css/theme-default.css"/>
    <!-- EOF CSS INCLUDE -->

    <script type="application/javascript">
        function submitChange() {
            var fiusername=document.getElementById("usernametop").innerHTML;
            var corp_name=document.getElementById("corp_name");
            var legalPerson_name=document.getElementById("legalPerson_name");
            var legalPerson_IDcard=document.getElementById("legalPerson_IDcard");
            var IDcardpath = document.getElementById("IDcardpath");
            var busLicenpath = document.getElementById("busLicenpath");
            $.post('/changeBasicInfo', {fiusername: fiusername,corp_name:corp_name.value,legalPerson_name:legalPerson_name.value,legalPerson_IDcard:legalPerson_IDcard.value,IDcardpath:IDcardpath.value,busLicenpath:busLicenpath.value},function (data){
                if(data!=null)
                    alert("提交成功，等待审核！");
            })
        }
    </script>

    <script type="text/javascript">
        function submitImage() {
//            $("#imageupload").ajaxForm(function(data){
//                console.log(data);
//            });
            $("#imageupload").ajaxSubmit({
                url: "/uploadImage", // 请求的url
                type: "post", // 请求方式
                dataType: "text", // 响应的数据类型
                async: true, // 异步
                success: function (data) {
                    alert("上传成功");
                    var json = eval("("+data+")");
                    $("#IDcardpath").attr("value",json.imageurl);
                    $("#IDcardImage").attr("src", json.imageurl);
                },
                error: function () {
                    alert("上传失败！");
                }
            })
        }
    </script>

    <script type="text/javascript">
        function submitLicense() {
            $("#busLicenupload").ajaxSubmit({
                url: "/uploadImage", // 请求的url
                type: "post", // 请求方式
                dataType: "text", // 响应的数据类型
                async: true, // 异步
                success: function (data) {
                    alert("上传成功");
                    var json = eval("("+data+")");
                    $("#busLicenpath").attr("value",json.imageurl);
                    $("#busiLicenImage").attr("src", json.imageurl);
                },
                error: function () {
                    alert("上传失败！");
                }
            })
        }
    </script>


    <script>
        window.onload=function () {
            $.get('/getCheckResult',
                    function (userMessage) {
                        var strArr = userMessage.split("|");
                        document.getElementById("usernameright").innerHTML = strArr[0];
                        document.getElementById("usernametop").innerHTML = strArr[0];
                        document.getElementById("usernameunder").innerHTML = strArr[0];
                        document.getElementById("corp_name").value = strArr[2];
                        document.getElementById("legalPerson_name").value = strArr[3];
                        document.getElementById("legalPerson_IDcard").value = strArr[4];
                        document.getElementById("IDcardImage").src = strArr[5];
                        document.getElementById("busiLicenImage").src = strArr[6];
                        if(strArr[1]==1)
                            document.getElementById("checkresult").innerHTML = "通过";
                        else if(strArr[1]==0)
                            document.getElementById("checkresult").innerHTML = "未通过";
                        else
                            document.getElementById("checkresult").innerHTML = "待审核";
                    }
            );
        }
    </script>
</head>
<body>
<!-- START PAGE CONTAINER -->
<div class="page-container">

    <!-- START PAGE SIDEBAR -->
    <div class="page-sidebar">
        <!-- START X-NAVIGATION -->
        <ul class="x-navigation">
            <li class="xn-logo">
                <a href="personalCenter.html" style="background-color: #1d2127;">
                    <img src="../assets/images/logo.png"
                         style="width: 220px;margin-top: -10px;margin-left: -16px;"></a>
                <a href="#" class="x-navigation-control"></a>
            </li>
            <li class="xn-profile">
                <a href="#" class="profile-mini" >
                    <img src="assets/images/users/avatar.jpg" alt="John Doe"/>
                </a>
                <div class="profile">
                    <div class="profile-image">

                        <a href="../index1.html" target="_blank">   <img src="assets/images/users/avatar.jpg" alt="John Doe" alt="图片说明" title="点击修改头像" style="margin-top: 10px;"/></a>

                    </div>
                    <div class="profile-data">
                        <div class="profile-data-name" id="usernameunder" style="margin-top: 5px;"></div>

                    </div>

                </div>
            </li>
            <li class="xn-title" style="padding-top: 15px;padding-bottom: 15px;">欢迎来到互联网金融司法诉讼平台</li>
            <li >
                <a href="personalCenter.html" style="font-size: 15px;"><span class="fa fa-user"></span> <span class="xn-text">个人中心</span></a>
            </li>
            <li class="active">
                <a href="#" style="font-size: 15px;"><span class="fa fa-file-text-o"></span> <span class="xn-text">基本信息</span></a>
            </li>
            <li >
                <a href="securityCenter.html"><span class="fa fa-cogs" ></span> <span class="xn-text" style="font-size: 15px;">安全中心</span></a>
            </li>


            <li >
                <a href="submitSuit.html"><span class="fa fa-suitcase"></span> <span class="xn-text" style="font-size: 15px;">发布诉讼</span></a>
            </li>

            <li >
                <a href="myCases.html"><span class="fa fa-archive"></span> <span class="xn-text" style="font-size: 15px;">我的案件</span></a>
            </li>


        </ul>
        <!-- END X-NAVIGATION -->
    </div>
    <!-- END PAGE SIDEBAR -->

    <!-- PAGE CONTENT -->
    <div class="page-content">

        <!-- START X-NAVIGATION VERTICAL -->
        <ul class="x-navigation x-navigation-horizontal x-navigation-panel">
            <!-- TOGGLE NAVIGATION -->
            <li class="xn-icon-button">
                <a href="#" class="x-navigation-minimize"><span class="fa fa-dedent"></span></a>
            </li>
            <!-- END TOGGLE NAVIGATION -->
            <!-- SIGN OUT -->
            <li class="xn-icon-button pull-right">
                <a href="#" class="mb-control" data-box="#mb-signout"><span class="fa fa-sign-out"></span></a>
            </li>
            <!-- END SIGN OUT -->
            <!-- MESSAGES -->
            <li class="xn-icon-button pull-right">
                <a id="usernameright" href="personalCenter.html" style="padding-left: 0px;width: 150px;padding-right: 0px;"></a>

            </li>
            <!-- END MESSAGES -->
            <!-- Hello -->
            <li class="xn-icon-button pull-right">
                <a style="width: 60px;">您好，</a>

            </li>
            <!-- END Hello -->
        </ul>
        <!-- END X-NAVIGATION VERTICAL -->


        <!-- START BREADCRUMB -->
        <ul class="breadcrumb">
            <li><a href="#">基本信息</a></li>
            <li class="active"></li>
        </ul>
        <!-- END BREADCRUMB -->

        <!-- PAGE CONTENT WRAPPER -->
        <div class="page-content-wrap">

            <!-- START WIDGETS -->
            <div class="row">

                <div class="col-md-12">

                    <!-- START VISITORS BLOCK -->
                    <div class="panel panel-default">

                        <div class="panel-body widget widget-default widget-item-icon"  style="margin-bottom: 0px; padding-top: 0px;">
                            <div class="row" id="submitCheck" style="height: 15px;background: #1caf9a; ">

                                <div class="row" style="height: 150px; margin-top: 5px;border-radius: 5px;">
                                    <div class="col-md-1">

                                    </div>
                                    <div class="col-md-4" >
                                        <div class="widget-title" style=" margin-top: 100px;    font-weight: 600;">用户名</div>

                                    </div>
                                    <div class="col-md-3" style="height: 25px">

                                        <div id="usernametop" class="title" name="fiusername" style="font-size: 16px;/*color: #3b8cff;*/font-weight: bold; margin-top: 100px;"></div>

                                    </div>
                                    <div class="col-md-3" style="width: 240px; height: 140px;">

                                        <!-- START WIDGET REGISTRED -->
                                        <div class="widget widget-default widget-item-icon" style="top: 5px;right: -80px;background: #1caf9a;color: #ffffff;">
                                            <div class="widget-item-left">
                                                <span class="fa fa-user"></span>
                                            </div>
                                            <div class="widget-data">
                                                <div class="widget-int num-count" style="text-align: center;font-size: 25px;">审核结果</div>
                                                <div class="widget-title" id="checkresult" style=" text-align: center;margin-top: 12px; font-size: 24px;color: #ff9b22;"></div>

                                            </div>

                                        </div>
                                        <!-- END WIDGET REGISTRED -->

                                    </div>
                                </div>
                                <div class="row" style="height: 60px; margin-top: 20px;">
                                    <div class="col-md-1">

                                    </div>
                                    <div class="col-md-4">
                                        <div class="widget-title" style=" margin-top: 5px; font-weight: 600;">企业名称</div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group has-warning">
                                            <input type="text" id="corp_name" name="corp_name" class="form-control" style="font-size: 16px;">
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="height: 60px; margin-top: 20px;">
                                    <div class="col-md-1"></div>
                                    <div class="col-md-4">


                                        <div class="widget-title" style=" margin-top: 5px; font-weight: 600;">法人真实姓名</div>


                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group has-warning">
                                            <input type="text" id="legalPerson_name" name="legalPerson_name" class="form-control"
                                                   style="font-size: 16px;">
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="height: 60px; margin-top: 20px;">
                                    <div class="col-md-1"></div>
                                    <div class="col-md-4">
                                        <div class="widget-title" style=" margin-top: 5px;font-weight: 600;">法人身份证号</div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="form-group has-warning">
                                            <input type="text" id="legalPerson_IDcard" name="legalPerson_IDcard" class="form-control"
                                                   style="font-size: 16px;">
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="height: 220px; margin-top: 20px;">
                                    <div class="col-md-1"></div>
                                    <div class="col-md-4">
                                        <div class="widget-title" style=" margin-top: 85px;font-weight: 600;">法人身份证正面照</div>
                                        <input type="text" style="display:none" id="IDcardpath" name="IDcardpath" class="form-control" value="" style="font-size: 16px;">
                                    </div>

                                    <div class="col-md-3">
                                        <div class="image">
                                            <img id="IDcardImage" src="" alt="请上传图片" style="width: 260px;">
                                        </div>
                                    </div>
<div class="col-md-4">
                                    <form method="POST" enctype="multipart/form-data" action="/uploadImage" name="imageupload" id="imageupload">
                                        <input type="file" id="file" name="file" onchange="submitImage();" size="30"/>
                                    </form>

                                </div>
                                    </div>
                                <div class="row" style="margin-top: 20px;">
                                    <div class="col-md-1"></div>
                                    <div class="col-md-4">
                                        <div class="widget-title" style=" margin-top: 85px;font-weight: 600;">企业营业执照正面照</div>
                                        <input type="text" style="display:none" id="busLicenpath" name="busLicenpath" class="form-control" value="" style="font-size: 16px;">
                                    </div>

                                    <div class="col-md-3">
                                        <div class="image">
                                            <img id="busiLicenImage" name="busLicenImage" src="" alt="请上传图片" style="width: 260px;">
                                        </div>
                                    </div>

                                    <form method="POST" enctype="multipart/form-data" action="/uploadImage" name="busLicenupload" id="busLicenupload">
                                        <input type="file" id="file2" name="file" onchange="submitLicense();" size="30"/>
                                    </form>

                                </div>
                                <div class="row" style="height: 60px; margin-top: 20px;">
                                    <div class="col-md-4"></div>
                                    <div class="col-md-4">
                                        <button onclick="submitChange()" class="btn btn-info btn-block" style="font-size: 16px;height: 38px;border-radius: 5px;margin-top: 20px;margin-bottom: 40px;">提交审核</button>
                                    </div>
                                </div>



                            </div>
                        </div>
                    </div>
                    <!-- END VISITORS BLOCK -->
                </div>
                <!-- END WIDGETS -->
            </div>
            <!-- END PAGE CONTENT WRAPPER -->
        </div>
        <!-- END PAGE CONTENT -->
    </div>
    <!-- END PAGE CONTAINER -->

    <!-- START MODAL ICON PREVIEW -->
    <div class="modal fade" id="iconPreview" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">Icon preview</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-md-4">
                            <div class="icon-preview"></div>
                        </div>
                        <div class="col-md-8">
                            <ul class="list-group border-bottom">
                                <li class="list-group-item icon-preview-span"></li>
                                <li class="list-group-item icon-preview-i"></li>
                                <li class="list-group-item icon-preview-class"></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>
            </div>
        </div>
    </div>
    <!-- END MODAL ICON PREVIEW -->

    <!-- MESSAGE BOX-->
    <div class="message-box animated fadeIn" data-sound="alert" id="mb-signout">
        <div class="mb-container">
            <div class="mb-middle">
                <div class="mb-title"><span class="fa fa-sign-out"></span> 注 <strong>销</strong> ?</div>
                <div class="mb-content">
                    <p>选择是注销当前用户，选择否将继续停留在该页面。</p>

                </div>
                <div class="mb-footer">
                    <div class="pull-right">
                        <a href="../signin.html" class="btn btn-success btn-lg">是</a>
                        <button class="btn btn-default btn-lg mb-control-close">否</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END MESSAGE BOX-->

<!-- START PRELOADS -->
<audio id="audio-alert" src="audio/alert.mp3" preload="auto"></audio>
<audio id="audio-fail" src="audio/fail.mp3" preload="auto"></audio>
<!-- END PRELOADS -->

<!-- START SCRIPTS -->
<!-- START PLUGINS
 <script type="text/javascript" src="js/plugins/jquery/jquery.min.js"></script>

-->

<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery-form.js"></script>

<script type="text/javascript" src="js/plugins/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/plugins/bootstrap/bootstrap.min.js"></script>
<!-- END PLUGINS -->

<!-- START THIS PAGE PLUGINS-->
<script type='text/javascript' src='js/plugins/icheck/icheck.min.js'></script>
<script type="text/javascript" src="js/plugins/mcustomscrollbar/jquery.mCustomScrollbar.min.js"></script>
<script type="text/javascript" src="js/plugins/scrolltotop/scrolltopcontrol.js"></script>

<script type="text/javascript" src="js/plugins/morris/raphael-min.js"></script>
<script type="text/javascript" src="js/plugins/morris/morris.min.js"></script>
<script type="text/javascript" src="js/plugins/rickshaw/d3.v3.js"></script>
<script type="text/javascript" src="js/plugins/rickshaw/rickshaw.min.js"></script>
<script type='text/javascript' src='js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js'></script>
<script type='text/javascript' src='js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js'></script>
<script type='text/javascript' src='js/plugins/bootstrap/bootstrap-datepicker.js'></script>
<script type="text/javascript" src="js/plugins/owl/owl.carousel.min.js"></script>

<script type="text/javascript" src="js/plugins/moment.min.js"></script>
<script type="text/javascript" src="js/plugins/daterangepicker/daterangepicker.js"></script>





<!-- END THIS PAGE PLUGINS-->

<!-- START TEMPLATE -->
<script type="text/javascript" src="js/settings.js"></script>

<script type="text/javascript" src="js/plugins.js"></script>
<script type="text/javascript" src="js/actions.js"></script>

<script type="text/javascript" src="js/demo_dashboard.js"></script>
<!-- END TEMPLATE -->
<!-- END SCRIPTS -->
</body>
</html>






